import request from '@/utils/request'

/**
 * @description: 获取采购入库
 * @param {*} params
 */
export function getIncomingReport(params) {
  return request({
    url: '/incoming/report/list',
    params
  })
}

/**
 * @description: 获取报告ID
 * @param {*} params
 */
export function getIncomingReportID(params) {
  return request({
    url: '/incoming/report/reportid',
    params
  })
}

/**
 * @description: 新增采购入库检验报告
 * @param {*} data
 */
export function addIncomingReport(data) {
  return request({
    url: '/incoming/report/add',
    method: 'post',
    data
  })
}

/**
 * @description: 获取采购入库检验报告详情
 * @param {*} data
 */
export function getIncomingReportDetail(params) {
  return request({
    url: '/incoming/report/detail',
    params
  })
}

/**
 * @description: 修改采购入库检验报告
 * @param {*} data
 */
export function updateIncomingReport(data) {
  return request({
    url: '/incoming/report/update',
    method: 'post',
    data
  })
}

/**
 * @description: 删除采购入库检验报告
 * @param {*} params
 */

export function deleteIncomingReport(data) {
  return request({
    url: '/incoming/report/delete',
    method: 'post',
    data
  })
}
